//**************************************************************************
//  Age.java       Java Foundations
//
//  Demonstrates the use of an if statement.
//**************************************************************************

import java.util.Scanner;

public class Age
{
    //----------------------------------------------------------------------
    //  Read the user's age and prints comment accordingly.
    //----------------------------------------------------------------------

    public static void main (String[] args)
    {

    final int MINOP = 21;
    
    Scanner scan = new Scanner (System.in);
    
    System.out.print ("Enter your age: ");
    int age = scan.nextInt();

    System.out.println ("You entered: " + age);

    if  (age < MINOP)
        System.out.println ("Youth is a wonderful thing.Enjoy.");

    System.out.println ("Age is a state of mind."); 
    }
}
